<?php

echo '以下为mem中存储的数据</br>';

$time_start = microtime ();

for($i = 0; $i < 100; $i ++) {
	$mem = new Memcache ();
	$mem->connect ( 'localhost', '11211' ); //连接memached服务器
	$goods = $mem->get ( 'goods_3' );
	print_r ( $goods ['g_name'] );
}
$time_end = microtime ();

echo '</br>';
echo $time_end - $time_start;